<template>
	<view>
		<view class="msg-content">
					<uni-card  v-for="(item,index) in msgList" :title="item.title" :extra="item.creatTime">
						<text class="uni-body">{{item.context}}</text>
					</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				msgList:[
					{
						msgId:1,
						userId:1,
						title:'系统通知',
						creatTime:'2023-11-2:17:00:31',
						context:'你的意见已经受理',
					},
				
					
				]
			}
		},
		onLoad(){
			this.init()
		},
		methods: {
			init(){
				this.request({
					url:'/system-message/listByid',
					method:'GET'
				}).then((res=>{
					if(res.code=='1'){
						this.msgList = res.data;
					}
				}))
			}
		}
	}
</script>

<style>

</style>
